//################################
// 版权所有：鸽子游戏俱乐部
// 系统名称：鸽子游戏俱乐部-移动版
// 文件名称：pubsubTopics.js
// 创建时间：2016年08月04日
// 创建人员：Panda
// 功能说明：PubSub Topic定义
//################################

//PubSub Topic定义规则
//模块名_(事件名[动词_名词])

'use strict';

// Hardware Back Press
const HARDWARE_BACK_PRESSED = 'HARDWARE_BACK_PRESSED';
const HARDWARE_BACK_PRESSED_FOR_EMAIL_EDITOR = 'HARDWARE_BACK_PRESSED_FOR_EMAIL_EDITOR';

// toast
const TOAST_MODAL_OPEN = 'TOAST_MODAL_OPEN';

//modal
const ALL_MODAL_CLOSE = 'ALL_MODAL_CLOSE';

//indicator
const SPINKIT_MODAL_OPEN = 'SPINKIT_MODAL_OPEN';
const SPINKIT_MODAL_CLOSE = 'SPINKIT_MODAL_CLOSE';

const MAIN_ONDIDFOCUS = 'MAIN_ONDIDFOCUS';

//my
const MY_RESET_PWD = 'MY_RESET_PWD';
const MY_OPEN_LOGOUT_MODAL='MY_OPEN_LOGOUT_MODAL';
const MY_FINISHED_SEND_FEEDBACK_EMAIL = 'MY_FINISHED_SEND_FEEDBACK_EMAIL';

//login and codepush
const CODE_PUSH_ONDIDFOCUS = 'CODE_PUSH_ONDIDFOCUS';

//attachment
const ATTACHMENT_DOWNLOAD_MODAL_OPEN = 'ATTACHMENT_DOWNLOAD_MODAL_OPEN';
const ATTACHMENT_SWIPE_OPEN = 'ATTACHMENT_SWIPE_OPEN';

const TOGGLE_INDICATOR_MODAL='TOGGLE_INDICATOR_MODAL';

//公共
const SEARCH_MODAL_TOGGLE='SEARCH_MODAL_TOGGLE';

// ConfirmDialog
const CONFIRM_DIALOG_OPEN = 'CONFIRM_DIALOG_OPEN';

module.exports = {
    HARDWARE_BACK_PRESSED,
    TOAST_MODAL_OPEN,
    ALL_MODAL_CLOSE,
    SPINKIT_MODAL_OPEN,
    SPINKIT_MODAL_CLOSE,
    MAIN_ONDIDFOCUS,

    //my
	MY_RESET_PWD,
    MY_OPEN_LOGOUT_MODAL,
    MY_FINISHED_SEND_FEEDBACK_EMAIL,

    //login and codepush
    CODE_PUSH_ONDIDFOCUS,
    
    //attachment
    ATTACHMENT_DOWNLOAD_MODAL_OPEN,
    ATTACHMENT_SWIPE_OPEN,

    TOGGLE_INDICATOR_MODAL,

    SEARCH_MODAL_TOGGLE,

    CONFIRM_DIALOG_OPEN,
	
};